package com.hs.srm.admin.modules.pricemanagement.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hs.srm.admin.modules.pricemanagement.dao.ParityEmailDao;
import com.hs.srm.admin.modules.pricemanagement.entity.ParityEmail;
import com.hs.srm.admin.modules.pricemanagement.service.ParityEmailService;
import com.hs.srm.base.common.annotation.DataFilter;
import com.hs.srm.base.common.utils.Constant;
import com.hs.srm.base.common.utils.QueryParam;
import com.hs.srm.common.utils.PageUtils;


/**
 * @author yanfei
 *
 * @date 2019年3月1日
 * 询价单头信息
 */
@Service("parityEmailService")
public class ParityEmailServiceImpl  extends ServiceImpl<ParityEmailDao, ParityEmail>   implements ParityEmailService {

	@Override
	public List<ParityEmail> findbyId(String id) {
		
		return this.baseMapper.findbyId(id);
	}

	/**
	 *分页查询
	 */
	@Override
	@DataFilter
	public PageUtils queryPage(Map<String, Object> params) {
		Page<ParityEmail> page = this.selectPage(
				new QueryParam<ParityEmail>(params).getPage(),
				new EntityWrapper<ParityEmail>()
);
		return new PageUtils(page);
      }

	
}	
